import xlrd

data = xlrd.open_workbook('附件一：已结束项目任务数据.xls')
table = data.sheet_by_name('t_tasklaunch')
data = xlrd.open_workbook('附件三：新项目任务数据.xls')
table2 = data.sheet_by_name('t_tasklaunch')

weidu = 1
jingdu = 2
jiage = 3
wancheng = 4

def getCellT1(x,y):
    return table.cell(x, y).value

def getCellT2(x,y):
    return table2.cell(x, y).value

def writeFile(filePath, content):
    print('Write info to file:Start...')
    # 将文件内容写到文件中
    with open(filePath, 'a', encoding='utf-8') as f:
        f.write(content)
        print('Write info to file:end...')

def readFile(filepath):
    f=open(filepath,'r')
    return f.read()